//################################################################################################################################//
//##                                                                                                                            ##//
//## This User Control is implement for create the dentist menu bar                                                             ##//
//##                                                                                                                            ##//
//## Author   : Kajal Mandal                                                                                                    ##//
//## Dated    : 15-06-2007                                                                                                      ##//
//##                                                                                                                            ##//
//################################################################################################################################//

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class includes_DentistMenu : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        localFunction lFunction= new localFunction();
       
        // check doctor logged in
        if (!lFunction.checkDentistLogin(false))
        {
            this.Visible = false;
        }
    }
    private bool _doctorCenter=false;

    public bool doctorCenter
    {
        get { return _doctorCenter; }
        set { _doctorCenter= value; }
    }
    private bool _doctorWithProfile = false;

    public bool doctorWithProfile
    {
        get { return _doctorWithProfile; }
        set { _doctorWithProfile = value; }
    }
	
    // log off
    protected void lnkLogOff_Click(object sender, EventArgs e)
    {
        localFunction lFunction = new localFunction();
        lFunction.logOffDoctor();
    }
    
    protected void lnkEdit_Click(object sender, EventArgs e)
    {
        Session["pageFromOrAction"]="Edit";
        Response.Redirect(Session["strHttps"]+"dentist/dentistRegistration.aspx");
    }

    // sign out
    protected void lnksignOut_Click(object sender, EventArgs e)
    {
        localFunction lFunction = new localFunction();
        lFunction.logOffDentist();
    }
}
